export const goRouter = (url, query = {}) => {
	if (!url) {
		uni.showToast({
			icon:'none',
			title: '缺少url'
		})
	}
	let queryString = ''
	if (JSON.stringify(query) != '{}') {
		Object.keys(query).forEach(key => {
			queryString += `&${key}=${query[key]}`
		})
		// queryString.replace(/^&*/,'?')
		console.log(queryString)
		url = url + '?' + queryString
	}
	console.log('sss', url)

	uni.navigateTo({
		url: url
	})
}
